class StrategyDetailEntity {
	int code;
	StrategyDetailData data;

	StrategyDetailEntity({this.code, this.data});

	StrategyDetailEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new StrategyDetailData.fromJson(json['data']) : null;
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		return data;
	}
}

class StrategyDetailData {
	bool isCollnect;
	int read;
	String imgPath;
	String author;
	int strategyId;
	int agree;
	String title;
	String content;
	int status;
	String desc;

	StrategyDetailData({this.isCollnect, this.read, this.imgPath, this.author, this.strategyId, this.agree, this.title, this.content, this.status, this.desc});

	StrategyDetailData.fromJson(Map<String, dynamic> json) {
		isCollnect = json['is_collnect'];
		read = json['read'];
		imgPath = json['img_path'];
		author = json['author'];
		strategyId = json['strategy_id'];
		agree = json['agree'];
		title = json['title'];
		content = json['content'];
		status = json['status'];
		desc = json['desc'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['is_collnect'] = this.isCollnect;
		data['read'] = this.read;
		data['img_path'] = this.imgPath;
		data['author'] = this.author;
		data['strategy_id'] = this.strategyId;
		data['agree'] = this.agree;
		data['title'] = this.title;
		data['content'] = this.content;
		data['status'] = this.status;
		data['desc'] = this.desc;
		return data;
	}
}
